package com.jrh.biz.siteMsg;

import com.jrh.common.exception.DataNotFoundException;
import com.jrh.domain.common.Page;
import com.jrh.domain.entity.SiteMsg;

/**
 * 类SiteMsgService.java的实现描述：TODO 类实现描述
 * 
 * @author mmyjse@gmail.com 2012-8-11 上午11:23:07
 */
public interface SiteMsgService {

    /**
     * 发送站内消息
     * 
     * @param siteMsg
     * @return
     * @throws DataNotFoundException
     */
    public boolean sendSiteMsg(SiteMsg siteMsg) throws DataNotFoundException;

    /**
     * 批量发送站内消息
     * 
     * @param receiverloginIds
     * @param siteMsg
     * @return
     */
    public boolean sendSiteMsg(String[] receiverLoginIds, SiteMsg siteMsg);

    /**
     * 查询用户所有站内短信
     * 
     * @param loginId
     * @param start
     * @param pageSize
     * @return
     */
    public Page<SiteMsg> findAllByLoginId(String loginId, Integer start, Integer pageSize);

    /**
     * 删除站内短信
     * 
     * @param id 卖场主键
     * @return
     */
    public boolean deleteSiteMsg(Long... ids);

}
